package com.skeleton.db.dto;

import com.skeleton.common.base.dto.BaseDto;
import com.skeleton.db.entity.BlogComment;

public class BlogCommentDto extends BaseDto {

	private int commentId;
	private String loginname;
	private String blogId;
	private String commentContent;
	private int commentCreateDttm;
	private String commentCreateDttmStr;
	private String commentCreateIp;
	private char commentStatus;

	public BlogComment toEntity() {
		BlogComment entity = new BlogComment();
		entity.setComment_id(commentId);
		entity.setLoginname(loginname);
		entity.setBlog_id(blogId);
		entity.setContent(commentContent);
		entity.setCreate_dttm(commentCreateDttm);
		entity.setCreate_ip(commentCreateIp);
		entity.setStatus(commentStatus);
		return entity;
	}

	public int getCommentId() {
		return commentId;
	}

	public void setCommentId(int commentId) {
		this.commentId = commentId;
	}

	public String getLoginname() {
		return loginname;
	}

	public void setLoginname(String loginname) {
		this.loginname = loginname;
	}

	public String getBlogId() {
		return blogId;
	}

	public void setBlogId(String blogId) {
		this.blogId = blogId;
	}

	public String getCommentContent() {
		return commentContent;
	}

	public void setCommentContent(String commentContent) {
		this.commentContent = commentContent;
	}

	public int getCommentCreateDttm() {
		return commentCreateDttm;
	}

	public void setCommentCreateDttm(int commentCreateDttm) {
		this.commentCreateDttm = commentCreateDttm;
	}

	public String getCommentCreateDttmStr() {
		return commentCreateDttmStr;
	}

	public void setCommentCreateDttmStr(String commentCreateDttmStr) {
		this.commentCreateDttmStr = commentCreateDttmStr;
	}

	public String getCommentCreateIp() {
		return commentCreateIp;
	}

	public void setCommentCreateIp(String commentCreateIp) {
		this.commentCreateIp = commentCreateIp;
	}

	public char getCommentStatus() {
		return commentStatus;
	}

	public void setCommentStatus(char commentStatus) {
		this.commentStatus = commentStatus;
	}

}
